<template>
	<view>
		<u-image width="100%" height="100vh" :src="src"></u-image>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src: "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-jiasichen/574e1050-4694-11eb-bf0a-894cbc80c40a.png",
				count: ""
			}
		},
		mounted() {
			// 三秒后进行跳转
			const timejump = 1;
			if (!this.timer) {
				this.count = timejump;
				this.show = false;
				this.timer = setInterval(() => {
					if (this.count > 0 && this.count <= timejump) {
						this.count--;//
					} else {
						this.show = true;
						clearInterval(this.timer);
						this.timer = null;
						// 跳转的页面写在此处
						wx.reLaunch({
							url: '/pages/home/index/index',
						});
						uni.hideHomeButton()
					}
				}, 500)
			}
		},
		methods: {

		}
	}
</script>

<style>

</style>
